package com.sp.pay.action;

import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(value = "/")
public class IndexAction {
	
	

    @RequestMapping(value = "index.do")
    public String index(HttpSession session){
    	if(session.getAttribute("userinfo")!=null){
    		return "index";
    	}
    	return "login";
    }

}
